package ua.org.nuos.sdms.middle.service;

import ua.org.nuos.sdms.middle.entity.User;

import javax.ejb.Local;

/**
 * Created with IntelliJ IDEA.
 * User: dio
 * Date: 9/16/12
 * Time: 6:48 PM
 * To change this template use File | Settings | File Templates.
 */
@Local
public interface AuthenticationLocal {

    /**
     * Check, if authentication user is in role (Role.*)
     *
     * @param roleName role from Role.*
     * @return is in role
     */
    boolean isUserInRole(String roleName);

    /**
     * Return authentication user
     *
     * @return user
     */
    User getCurrentUser();
}
